home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 5
/
Skunkware 5.iso
/
man
/
cat.n
/
error.n
< prev
next >
Wrap
Text File
|
1995-07-25
|
4KB
|
66 lines
eeeerrrrrrrroooorrrr((((nnnn)))) TTTTccccllll (((( )))) eeeerrrrrrrroooorrrr((((nnnn))))
_________________________________________________________________
NNNNAAAAMMMMEEEE
error - Generate an error
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
eeeerrrrrrrroooorrrr _m_e_s_s_a_g_e ?_i_n_f_o? ?_c_o_d_e?
_________________________________________________________________
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
Returns a TCL_ERROR code, which causes command
interpretation to be unwound. _M_e_s_s_a_g_e is a string that is
returned to the application to indicate what went wrong.
If the _i_n_f_o argument is provided and is non-empty, it is
used to initialize the global variable eeeerrrrrrrroooorrrrIIIInnnnffffoooo. eeeerrrrrrrroooorrrrIIIInnnnffffoooo
is used to accumulate a stack trace of what was in progress
when an error occurred; as nested commands unwind, the Tcl
interpreter adds information to eeeerrrrrrrroooorrrrIIIInnnnffffoooo. If the _i_n_f_o
argument is present, it is used to initialize eeeerrrrrrrroooorrrrIIIInnnnffffoooo and
the first increment of unwind information will not be added
by the Tcl interpreter. In other words, the command
containing the eeeerrrrrrrroooorrrr command will not appear in eeeerrrrrrrroooorrrrIIIInnnnffffoooo;
in its place will be _i_n_f_o. This feature is most useful in
conjunction with the ccccaaaattttcccchhhh command: if a caught error cannot
be handled successfully, _i_n_f_o can be used to return a stack
trace reflecting the original point of occurrence of the
error:
ccccaaaattttcccchhhh {{{{............}}}} eeeerrrrrrrrMMMMssssgggg
sssseeeetttt ssssaaaavvvveeeeddddIIIInnnnffffoooo $$$$eeeerrrrrrrroooorrrrIIIInnnnffffoooo
............
eeeerrrrrrrroooorrrr $$$$eeeerrrrrrrrMMMMssssgggg $$$$ssssaaaavvvveeeeddddIIIInnnnffffoooo
If the _c_o_d_e argument is present, then its value is stored in
the eeeerrrrrrrroooorrrrCCCCooooddddeeee global variable. This variable is intended to
hold a machine-readable description of the error in cases
where such information is available; see the section BUILT-
IN VARIABLES below for information on the proper format for
the variable. If the _c_o_d_e argument is not present, then
eeeerrrrrrrroooorrrrCCCCooooddddeeee is automatically reset to ``NONE'' by the Tcl
interpreter as part of processing the error generated by the
command.
KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
error, errorCode, errorInfo
Page 1 (printed 7/17/95)